package me.mengjiandu.test;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import me.mengjiandu.entity.Blog;
import me.mengjiandu.mapper.BlogMapper;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:spring/applicationContext.xml") 
public class Main {
 
	@Resource
	private BlogMapper blogMapper;
	
	@Test
	public void test() {
		Blog blog = blogMapper.findById("1");
		System.out.println(blog.toString());
		System.out.println(123);
	}
}
